<?php

namespace app\api\validate;

use app\common\validate\BaseValidate;

class AddressValidate extends BaseValidate
{
    protected $rule = [
        "name|姓名" => 'require',
        "tel|电话" => 'require|mobile',
        "province|省份" => 'require',
        "city|城市" => 'require',
        "area|地区" => 'require',
        "address|地址" => 'require',
        "type|类型" =>'require|in:fa,shou',
        "id|ID" => 'require',
    ];

    protected $message = [
    ];
    
    
    protected $scene = [
        "add" => ["name","tel","province","city","area","tel","address"],
        "edit" => ["name","tel","province","city","area","tel","address",'id'],
    ];
}